.Net Framework > v1.1.4322 > System > Threading > Monitor > Wait Wait(Object)
Wait(Object,Int32)
Wait(Object,Int32,Boolean)
Wait(Object,TimeSpan)
Wait(Object,TimeSpan,Boolean)


Wait(Object)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Wait(Object,Int32)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock or a specified amount of time elapses.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
millisecondsTimeoutInt32
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Wait(Object,Int32,Boolean)

Category
Method
Description
Waits for notification from an object that called the System.Threading.Monitor.Pulse(System.Object) or System.Threading.Monitor.PulseAll(System.Object) method or for a specified timer to elapse. This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
millisecondsTimeoutInt32
exitContextBoolean
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Wait(Object,TimeSpan)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock or a specified amount of time elapses.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
timeoutTimeSpan
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Wait(Object,TimeSpan,Boolean)

Category
Method
Description
Releases the lock on an object and blocks the current thread until it reacquires the lock, or until a specified amount of time elapses, optionally exiting the synchronization domain for the synchronized context before the wait and reacquiring the domain.
Type
Boolean
Character
public, static
Parameters
NameTypeDescription
objObject
timeoutTimeSpan
exitContextBoolean
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database